﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ArticleDetails.ascx.cs" Inherits="NLLSite.UserControl.ArticleDetails" %>

<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
    ContextTypeName="DAL_Class.NLLDataContext" 
    Select="new (ID, MenuID, Name, Title, ThumbImage, Description, Content, CreateDate, AuthorID, AuDescription)" 
    TableName="view_UI_ALLArticles" Where="ID == @ID">
    <WhereParameters>
        <asp:QueryStringParameter DefaultValue="1" Name="ID" 
            QueryStringField="articleid" Type="Int32" />
    </WhereParameters>
</asp:LinqDataSource>
<asp:ListView ID="ListView1" runat="server" DataSourceID="LinqDataSource1" 
    EnableModelValidation="True">
    
    <EmptyDataTemplate>
    <div class="box-center">
                        	<div class="box-center-dau"><h1>Bài viết</h1></div>
                            <div class="box-center-giua"><div class="box-center-item-tin">
        <span>Không tìm thấy bài viết.</span>
        </div>
        </div>
                            <div class="box-center-cuoi"></div>
                        </div>
                        <div class="clr"></div>
    </EmptyDataTemplate>
   
    <ItemTemplate>
    <div class="location"><a href="/trang-chu">
    <img height="24px" border="0" align="absmiddle" src="/Templates/Images/inet_icon.png">
    &nbsp;NLL</a>
    <img height="5px" width="7px" border="0" style="padding:5px 5px;" align="absmiddle" src="/Templates/Images/icon-location.png" >
    &nbsp;<a href="/chu-de/<%# Eval("MenuID") %>/<%#ConvertToUnSign(DataBinder.Eval(Container.DataItem, "Name").ToString())%>" ><%# Eval("Name") %></a><img height="5px" width="7px" border="0" style="padding:5px 5px;" align="absmiddle" src="/Templates/Images/icon-location.png" >
    <%# Eval("Title") %>
    </div>
         <div class="clr"></div>
        <div class="box-center-dau"><h1><%# Eval("Title") %></h1><span style="float:right; width:80px;padding:3px 1px 0px 0px;"><a class="addthis_button_google_plusone" <%="g:plusone:size"%>="medium" ></a></span></div>
            <div class="box-center-giua">
                <div class="box-center-item-tin">
                <table width="100%">
                    <tbody>
                    <tr>
                        <td align="left" width="90%">
                        <font class="duoi-title"><i>
                        Viết ngày: <%# Eval("CreateDate") %>
                        </i>
                        </font>
                        </td>
                        <td align="left" width="10%"> </td>
                        </tr>
                      </tbody>
                   </table>
                <table>
                <tbody>
                <tr>
                <td width="20%">
                <img width="130px" src="<%# Eval("ThumbImage") %>">
                </td>
                <td width="80%"><%# Eval("Description") %>'</td>
                </tr>
                </tbody>
                </table>
                <%# Eval("Content") %>
                <span style="float:right;">
                <!-- AddThis Button BEGIN -->
                
                

                <a class="addthis_button_google_plusone" <%="g:plusone:size"%>="tall" ></a>
<a class="addthis_button_facebook_like" <%="fb:like:layout"%>="box_count"></a>

<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f1854f0139e903c"></script>
<!-- AddThis Button END -->
                </span>
                </div>
                </div>
            <div class="box-center-cuoi"></div>
        </div>
        <div class="clr"></div>
        <div class="location"><%# Eval("AuDescription") %></div>
        <%--<span style="">Title:
        <asp:Label ID="TitleLabel" runat="server" Text='<%# Eval("Title") %>' />
        <br />
        ID:
        <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
        <br />
        MenuID:
        <asp:Label ID="MenuIDLabel" runat="server" Text='<%# Eval("MenuID") %>' />
        <br />
        ThumbImage:
        <asp:Label ID="ThumbImageLabel" runat="server" 
            Text='<%# Eval("ThumbImage") %>' />
        <br />
        Description:
        <asp:Label ID="DescriptionLabel" runat="server" 
            Text='<%# Eval("Description") %>' />
        <br />
        Content:
        <asp:Label ID="ContentLabel" runat="server" Text='<%# Eval("Content") %>' />
        <br />
        CreateDate:
        <asp:Label ID="CreateDateLabel" runat="server" 
            Text='<%# Eval("CreateDate") %>' />
        <br />
        AuthorID:
        <asp:Label ID="AuthorIDLabel" runat="server" Text='<%# Eval("AuthorID") %>' />
        <br />
        MetaTitle:
        <asp:Label ID="MetaTitleLabel" runat="server" Text='<%# Eval("MetaTitle") %>' />
        <br />
        MetaKeywords:
        <asp:Label ID="MetaKeywordsLabel" runat="server" 
            Text='<%# Eval("MetaKeywords") %>' />
        <br />
        MetaDescription:
        <asp:Label ID="MetaDescriptionLabel" runat="server" 
            Text='<%# Eval("MetaDescription") %>' />
        <br />
        MetaRobots:
        <asp:Label ID="MetaRobotsLabel" runat="server" 
            Text='<%# Eval("MetaRobots") %>' />
        <br />
        MetaAuthor:
        <asp:Label ID="MetaAuthorLabel" runat="server" 
            Text='<%# Eval("MetaAuthor") %>' />
        <br />
<br /></span>--%>
    </ItemTemplate>
    <LayoutTemplate>
        <div ID="itemPlaceholderContainer" runat="server" style="">
            <span runat="server" id="itemPlaceholder" />
        </div>
        <div style="">
        </div>
    </LayoutTemplate>
    
</asp:ListView>


